from info.modules.index import blue_print
from flask import render_template, current_app


@blue_print.route('/')
def index():
    # from info import rs
    # from flask import session
    # rs.set("name", "hello")
    # session["name"] = "zhangliang"
    return render_template("news/index.html")


@blue_print.route('/index2')
def index2():
    return "Hello World!2"


@blue_print.route('/logs')
def logs():
    import logging
    logging.debug("debug")
    logging.info("info")
    logging.warning("warn")
    logging.error("error")
    logging.critical("critical")
    return "logs"

@blue_print.route('/favicon.ico')
def favicon():
    return current_app.send_static_file("news/favicon.ico")
